home *** CD-ROM | disk | FTP | other *** search
/ Cream of the Crop 12 / Cream of the Crop 12 (Part II) / Cream of the Crop 12 (Part II).iso / OS2 / GNUSUTIL.ZIP / src / Makefile.os2 < prev    next >
Encoding:
Makefile  |  1994-12-17  |  842 b   |  35 lines

  1. # Makefile for GNU shell utilities programs.
  2. # Do not use this makefile directly, but only from `../Makefile'.
  3. # Copyright (C) 1991 Free Software Foundation, Inc.
  4.  
  5. PROGS = basename.exe date.exe dirname.exe echo.exe env.exe expr.exe \
  6. hostname.exe id.exe logname.exe pathchk.exe printenv.exe printf.exe \
  7. pwd.exe sleep.exe tee.exe test.exe tty.exe whoami.exe yes.exe nice.exe \
  8. uname.exe # su.exe stty.exe users.exe who.exe
  9.  
  10. .SUFFIXES: .c $O .exe
  11.  
  12. .c$O:
  13.     $(CC) $(CFLAGS) -c $<
  14.  
  15. $O.exe:
  16.     $(CC) -o $@ $^ $(LDFLAGS) $(LIBS)
  17.  
  18. .PHONY: all
  19. all: $(PROGS)
  20.  
  21. $(PROGS): version$O gnushutl.def
  22.  
  23. env$O id$O nice$O pathchk$O stty$O tty$O uname$O: ../lib/getopt.h
  24. expr$O: ../lib/regex.h
  25.  
  26.  
  27. test$O:    test.c
  28.     $(CC) $(CFLAGS) -DTEST_STANDALONE -c test.c
  29.  
  30. users$O: who.c
  31.     $(CC) $(CFLAGS) -DUSERS -c who.c
  32.  
  33. clean:
  34.     rm -f *.o *.obj
  35.